export const addRules = {
  name: [
    {
      required: true,
      message: 'Please input Activity name',
      trigger: 'blur'
    },
    {
      min: 3,
      max: 5,
      message: 'Length should be 3 to 5',
      trigger: 'blur'
    }
  ],
  region: [
    {
      required: true,
      message: 'Please select Activity zone',
      trigger: 'change'
    }
  ],
  date1: [
    {
      required: true,
      message: 'Please pick a date',
      trigger: 'change',
      type: 'object'
    }
  ],
  type: [
    {
      type: 'array',
      required: true,
      message: 'Please select at least one activity type',
      trigger: 'change'
    }
  ],
  resource: [
    {
      required: true,
      message: 'Please select activity resource',
      trigger: 'change'
    }
  ],
  desc: [
    {
      required: true,
      message: 'Please input activity form',
      trigger: 'blur'
    }
  ]
};

export const tableColumns = [
  {
    title: '姓名',
    dataIndex: 'name',
    key: 'name'
  },
  {
    title: '姓名',
    dataIndex: 'name',
    key: 'name'
  },
  {
    title: '姓名',
    dataIndex: 'name',
    key: 'name'
  },
  {
    title: '姓名',
    dataIndex: 'name',
    key: 'name'
  },
  {
    title: '年龄',
    dataIndex: 'age',
    key: 'age'
  },
  {
    title: '住址',
    dataIndex: 'address',
    key: 'address'
  }
]

export const detailConfig = [
  [{ label: '测试', key: 'test' }, { label: '测试', key: 'test' }, {
    label: '测试', key: 'test', func: () => {
      return '00000'
    }
  }
  ],
  [{ label: '测试', key: 'test' }, { label: '测试', key: 'test' }],
  [{ label: '测试', key: 'test' }, { label: '测试', key: 'test' }, { label: '测试', key: 'test' }],
  [
    { label: '图片', key: 'img', detailType: 'image' },
    { label: '图片', key: 'img', detailType: 'image' }
  ],
  [
    { label: '图片集合', key: 'imgList', detailType: 'imageList' }
  ]
]